package com.tour.modules.web.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tour.modules.web.dao.TWorkOrderContentDao;
import com.tour.modules.web.entity.TWorkOrderContentEntity;
import com.tour.modules.web.service.TWorkOrderContentService;

@Service("tWorkOrderContentService")
public class TWorkOrderContentServiceImpl implements TWorkOrderContentService {
	@Autowired
	private TWorkOrderContentDao tWorkOrderContentDao;

	@Override
	public TWorkOrderContentEntity queryObject(Long id) {
		return tWorkOrderContentDao.queryObject(id);
	}

	@Override
	public List<TWorkOrderContentEntity> queryList(Map<String, Object> map) {
		return tWorkOrderContentDao.queryList(map);
	}

	@Override
	public int queryTotal(Map<String, Object> map) {
		return tWorkOrderContentDao.queryTotal(map);
	}

	@Override
	public void save(TWorkOrderContentEntity tWorkOrderContent) {
		tWorkOrderContentDao.save(tWorkOrderContent);
	}

	@Override
	public void update(TWorkOrderContentEntity tWorkOrderContent) {
		tWorkOrderContentDao.update(tWorkOrderContent);
	}

	@Override
	public void delete(Long id) {
		tWorkOrderContentDao.delete(id);
	}

	@Override
	public void deleteBatch(Long[] ids) {
		tWorkOrderContentDao.deleteBatch(ids);
	}

	@Override
	public List<TWorkOrderContentEntity> queryListByTWorkOrderId(Long id) {

		return tWorkOrderContentDao.queryListByTWorkOrderId(id);
	}

}
